package thesis.filesharing.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import thesis.filesharing.bo.LecturerBO;
import thesis.filesharing.dao.LecturerDAO;
import thesis.filesharing.model.Lecturer;

@Service
public class LecturerBOImpl implements LecturerBO {
	
	@Autowired
	private LecturerDAO lecturerDAO;
	
	@Override
	public Lecturer findLecturerById(String lecturerId) {
		return lecturerDAO.findLecturerById(lecturerId);
	}

	@Override
	public Lecturer saveLecturer(Lecturer lecturer, boolean isAdmin) {
		return lecturerDAO.saveLecturer(lecturer, isAdmin);
	}

	@Override
	public Lecturer findLecturerByEmail(String lecturerEmail) {
		return lecturerDAO.findLecturerByEmail(lecturerEmail);
	}
}
